package cn.itcast.nems.common.tenant;

/**
 * author: yong.li
 * create: 2023-08-18 16:46:25
 **/
public record TenantInfo(Integer tenantId, Integer subtenantId) {

    /**
     * 缺省主租户: 传智教育
     */
    public static final Integer DEFAULT_TENANT_ID = 1000;

    /**
     * 缺省子租户: 短训
     */
    public static final Integer DEFAULT_SUBTENANT_ID = 10001;

    /**
     * 缺省租户
     */
    public static final TenantInfo DEFAULT_TENANT_INFO = new TenantInfo(DEFAULT_TENANT_ID, DEFAULT_SUBTENANT_ID);
}
